#ifndef __PAGE_H__
#define __PAGE_H__

#include <QWidget>
#include <QString>
#include <QLineEdit>
#include <QTextEdit>

#include "image_viewer.h"

class TestPage2 : public QWidget
{
    Q_OBJECT

public:
    explicit TestPage2(QWidget *parent = 0);
    ~TestPage2() { };

    void update_info(void);

protected:
    inline void resizeEvent(QResizeEvent *event) { update_info(); };

private:
    QLineEdit *edt_file_path;
    QString file_path;
    ImageViewer *viewer;
    QTextEdit *edt_info;
    QTextEdit *edt_log;

private slots:
    void open_file(void);
    void show_image(void);
    void clear_image(void);

};

#endif /* __PAGE_H__ */

